import 'dart:convert' show json;

class EntryListBean {

  List<EntryBean> list;

  EntryListBean.fromParams({this.list});

  EntryListBean.fromJson(jsonRes) {
    list = jsonRes['list'] == null ? null : [];

    for (var listItem in list == null ? [] : jsonRes['list']){
      list.add(listItem == null ? null : new EntryBean.fromJson(listItem));
    }
  }

  @override
  String toString() {
    return '{"list": $list}';
  }
}

class EntryBean {

  String CreateDate;
  List<EntryBeanData> Data;

  EntryBean.fromParams({this.CreateDate, this.Data});

  EntryBean.fromJson(jsonRes) {
    CreateDate = jsonRes['CreateDate'];
    Data = jsonRes['Data'] == null ? null : [];

    for (var DataItem in Data == null ? [] : jsonRes['Data']){
      Data.add(DataItem == null ? null : new EntryBeanData.fromJson(DataItem));
    }
  }

  @override
  String toString() {
    return '{"CreateDate": ${CreateDate != null?'${json.encode(CreateDate)}':'null'},"Data": $Data}';
  }
}

class EntryBeanData {

  String ExpectArrivalTime;
  String LossReason;
  String ReciveCarAgent;
  String SmsContent;
  String StateDesc;
  int ArrivalType;
  int ReciveCarAgentId;
  int State;
  String AgentName;
  String CreateTime;
  String ExpectedFinishedTime;
  String Mobile;
  String NextFollowUpTime;
  String ReciveCarAea;
  String Remark;
  String RoleName;

  EntryBeanData.fromParams({this.ExpectArrivalTime, this.LossReason, this.ReciveCarAgent, this.SmsContent, this.StateDesc, this.ArrivalType, this.ReciveCarAgentId, this.State, this.AgentName, this.CreateTime, this.ExpectedFinishedTime, this.Mobile, this.NextFollowUpTime, this.ReciveCarAea, this.Remark, this.RoleName});

  EntryBeanData.fromJson(jsonRes) {
    ExpectArrivalTime = jsonRes['ExpectArrivalTime'];
    LossReason = jsonRes['LossReason'];
    ReciveCarAgent = jsonRes['ReciveCarAgent'];
    SmsContent = jsonRes['SmsContent'];
    StateDesc = jsonRes['StateDesc'];
    ArrivalType = jsonRes['ArrivalType'];
    ReciveCarAgentId = jsonRes['ReciveCarAgentId'];
    State = jsonRes['State'];
    AgentName = jsonRes['AgentName'];
    CreateTime = jsonRes['CreateTime'];
    ExpectedFinishedTime = jsonRes['ExpectedFinishedTime'];
    Mobile = jsonRes['Mobile'];
    NextFollowUpTime = jsonRes['NextFollowUpTime'];
    ReciveCarAea = jsonRes['ReciveCarAea'];
    Remark = jsonRes['Remark'];
    RoleName = jsonRes['RoleName'];
  }

  @override
  String toString() {
    return '{"ExpectArrivalTime": ${ExpectArrivalTime != null?'${json.encode(ExpectArrivalTime)}':'null'},"LossReason": ${LossReason != null?'${json.encode(LossReason)}':'null'},"ReciveCarAgent": ${ReciveCarAgent != null?'${json.encode(ReciveCarAgent)}':'null'},"SmsContent": ${SmsContent != null?'${json.encode(SmsContent)}':'null'},"StateDesc": ${StateDesc != null?'${json.encode(StateDesc)}':'null'},"ArrivalType": $ArrivalType,"ReciveCarAgentId": $ReciveCarAgentId,"State": $State,"AgentName": ${AgentName != null?'${json.encode(AgentName)}':'null'},"CreateTime": ${CreateTime != null?'${json.encode(CreateTime)}':'null'},"ExpectedFinishedTime": ${ExpectedFinishedTime != null?'${json.encode(ExpectedFinishedTime)}':'null'},"Mobile": ${Mobile != null?'${json.encode(Mobile)}':'null'},"NextFollowUpTime": ${NextFollowUpTime != null?'${json.encode(NextFollowUpTime)}':'null'},"ReciveCarAea": ${ReciveCarAea != null?'${json.encode(ReciveCarAea)}':'null'},"Remark": ${Remark != null?'${json.encode(Remark)}':'null'},"RoleName": ${RoleName != null?'${json.encode(RoleName)}':'null'}}';
  }
}

